
<template>
	<view class="bir-webviwe">
		<view class="img"  @click="but" style="width: 50px;height: 50px;">
			<image src="../../static/img/icon_guanbi@3x.png" mode="" style="width: 40px;height: 40px;" ></image>
		</view>
		
		<!-- <iframe id="iframe" class="viewiframe" :src="Designurl" ref="iframe" name="design" frameborder="0" ></iframe> -->
		<web-view  :src="Designurl"></web-view>
	</view>
</template>
 
<script>
	import {ajax} from "../../api.js"
	export default {
		data(){
			return{
				add:true,
				Designurl:"",
				list:"",
			}
		},
		onLoad(option) {
			this.list=option
			this.Designurl = "https://lyt.tf56.com/lytMobile/#/author?name="+option.name+"&id="+option.idnum+"&mobile="+option.phone+"&partyId=16340244"

			},
			// created() {
			// 	this.Designurl = "https://lyt.tf56.com/lytMobile/#/author?name="+this.list.name+"&id="+this.list.idnum+"&mobile="+this.list.phone+"&partyId=16340244"
			// },
			
		methods: {
			but(){
				var that=this
				ajax({
						url:"https://www.uhuoda.com/v1/appdriver/user/profile",

						success(res){			
							if(res.data.message.authstatus==1){
								uni.showToast({
								    title: '请授权后在关闭',
									icon:"none"
								}) 
							}else{
								uni.reLaunch({
									url:"../Receipt/Receipt"
								})
							}
						}
				})
			},
		}
	}
</script>
<style  scoped>
	.bir-webviwe {
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		top: 0;
	}
	.img{
		position: absolute;
		right: 10px;
		top: 5px;
	}
</style>


<style>

</style>
